﻿﻿using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Text;

namespace NyBio.Model
{

    public class Ticket
    {

        private int id;
        private int scheduleId;
        private int seatId;
        private int userId;
        private decimal price;

        public Ticket()
        {
            id = 0;
            scheduleId = 0;
            seatId = 0;
            userId = 0;
            price = 0;
        }
        public Ticket(int id, int scheduleId, int seatId, int userId, decimal price)
        {
            this.id = id;
            this.scheduleId = scheduleId;
            this.seatId = seatId;
            this.userId = userId;
            this.price = price;
        }
        public Ticket(int scheduleId, int seatId, int userId, decimal price)
        {
            
            this.scheduleId = scheduleId;
            this.seatId = seatId;
            this.userId = userId;
            this.price = price;
        }

        #region Get&Set
        public int _id
        {
            get { return id; }
            set { id = value; }
        }
        public int _scheduleId
        {
            get { return scheduleId; }
            set { scheduleId = value; }
        }
        public int _seatId
        {
            get { return seatId; }
            set { seatId = value; }
        }
        
        public int _userId
        {
            get { return userId; }
            set { userId = value; }
        }

        public decimal _price
        {
            get { return price; }
            set { price = value; }
        }
        
        #endregion
        
    }
}